package org.example.market_spring.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.market_spring.annotation.AutoFill;
import org.example.market_spring.entity.Goods;
import org.example.market_spring.enumeration.OperationType;

import java.util.List;
import java.util.Map;

@Mapper
public class GoodsMapper {
    List<Goods> queryGoods(@Param("goods") Goods goods);

    List<Goods> queryByIds(@Param("ids") String[] id);

    //@AutoFill(value = OperationType.INSERT)
    //void updateGoodsNum(Map<Object,Object> map);
}
